//---------------------------------------------------------------------------

#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "sciter-x.h"
#include "sciter-x-script.h"

using namespace sciter;

class CEventHandler;

//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
	void __fastcall FormShow(TObject *Sender);
private:	// User declarations
public:		// User declarations
	__fastcall TForm1(TComponent* Owner);
	void __fastcall WndProc(TMessage &Msg);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;

class CEventHandler : public event_handler
{
private:
	HWND m_hWnd;

public:

	CEventHandler(HWND Handle);
	bool handle_event (HELEMENT he, BEHAVIOR_EVENT_PARAMS& params);
	bool handle_mouse  (HELEMENT he, MOUSE_PARAMS& params );

};


//---------------------------------------------------------------------------
#endif
